package com.chen.excel;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "image_records")
public class ImageRecord {
    @Id
    private String id;
    
    private String waybillNo;
    private String driverName;
    private String plateNumber;
    private String imageUrl;

    public ImageRecord() {
    }

    public ImageRecord(String waybillNo, String driverName, String plateNumber, String imageUrl) {
        this.waybillNo = waybillNo;
        this.driverName = driverName;
        this.plateNumber = plateNumber;
        this.imageUrl = imageUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Override
    public String toString() {
        return "ImageRecord{" +
                "id='" + id + '\'' +
                ", waybillNo='" + waybillNo + '\'' +
                ", driverName='" + driverName + '\'' +
                ", plateNumber='" + plateNumber + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                '}';
    }
}